home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / winterp-1.13 / src-server / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-04  |  4.6 KB  |  95 lines

  1. /* -*-C-*-
  2. ********************************************************************************
  3. *
  4. * File:         config.h
  5. * RCS:          $Header: config.h,v 1.2 91/03/17 04:14:58 mayer Exp $
  6. * Description:  Default filepaths, ID's etc.
  7. * Author:       Niels Mayer, HPLabs
  8. * Created:      Wed Aug 31 14:09:08 1988
  9. * Modified:     Thu Oct  3 19:59:35 1991 (Niels Mayer) mayer@hplnpm
  10. * Language:     C
  11. * Package:      N/A
  12. * Status:       X11r5 contrib tape release
  13. *
  14. * WINTERP Copyright 1989, 1990, 1991 Hewlett-Packard Company (by Niels Mayer).
  15. * XLISP version 2.1, Copyright (c) 1989, by David Betz.
  16. *
  17. * Permission to use, copy, modify, distribute, and sell this software and its
  18. * documentation for any purpose is hereby granted without fee, provided that
  19. * the above copyright notice appear in all copies and that both that
  20. * copyright notice and this permission notice appear in supporting
  21. * documentation, and that the name of Hewlett-Packard and David Betz not be
  22. * used in advertising or publicity pertaining to distribution of the software
  23. * without specific, written prior permission.  Hewlett-Packard and David Betz
  24. * make no representations about the suitability of this software for any
  25. * purpose. It is provided "as is" without express or implied warranty.
  26. *
  27. * HEWLETT-PACKARD AND DAVID BETZ DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  28. * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
  29. * IN NO EVENT SHALL HEWLETT-PACKARD NOR DAVID BETZ BE LIABLE FOR ANY SPECIAL,
  30. * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  31. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  32. * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  33. * PERFORMANCE OF THIS SOFTWARE.
  34. *
  35. * See ./winterp/COPYRIGHT for information on contacting the authors.
  36. * Please send modifications, improvements and bugfixes to mayer@hplabs.hp.com
  37. * Post XLISP-specific questions/information to the newsgroup comp.lang.lisp.x
  38. *
  39. ********************************************************************************
  40. */
  41.  
  42. /*
  43.  * define WINTERP_WANT_INET_SERVER (or compile w/ -DWINTERP_WANT_INET_SERVER)
  44.  * if you want WINTERP to allow a INET domain winterp-lisp eval server .
  45.  * Note that the INET domain server is a security hole, allowing anybody on
  46.  * the network to access your machine through WINTERP.
  47.  * That's why it's disabled by default.
  48.  *
  49.  * Note that WINTERP may be compiled using both WINTERP_WANT_UNIX_SERVER
  50.  * and WINTERP_WANT_INET_SERVER. WINTERP can run with both servers enabled.
  51.  */
  52. /* #define WINTERP_WANT_INET_SERVER */
  53.  
  54. /*
  55.  * Comment this out if you don't want WINTERP's Unix Domain Server capabilities.
  56.  * You may wish to do this for creating stand-alone applications
  57.  * that do not need a server input. ALternately, your Unix implementation
  58.  * may not support Unix Domain Sockets...
  59.  *
  60.  * Note that WINTERP may be compiled using both WINTERP_WANT_UNIX_SERVER
  61.  * and WINTERP_WANT_INET_SERVER. WINTERP can run with both servers enabled.
  62.  */
  63. #define WINTERP_WANT_UNIX_SERVER
  64.  
  65. /*
  66.  * INET Domain client/server defaults used by both ./winterp.c
  67.  * and ../src-client/wl-tcpip.c.
  68.  */
  69. #define DEFAULT_INET_SERVICE_HOSTADDR        "127.0.0.1" /* 'wl-tcpip' uses loopback address by default */
  70. #define DEFAULT_INET_HOSTADDR_ENVVAR        "WINTERP_INET_HOSTNAME"    /* 'wl-tcpip' looks for this environment var holding server hostname */
  71. #define DEFAULT_INET_SERVICE_PORT        23751 /* used by both 'winterp' and 'wl-tcpip' -- default WINTERP INET server port number */
  72. #define DEFAULT_INET_PORT_ENVVAR        "WINTERP_INET_PORTNUM" /* used by both 'winterp' and 'wl-tcpip' -- environment var holding port number */
  73. #define DEFAULT_INET_SERVICE_NAME        "widget_interp"    /* used by both 'winterp' and 'wl-tcpip' -- service name if portnum specified as 0 */
  74. #define DEFAULT_ENABLE_INET_SERVER        FALSE /* by default, don't enable INET server because it is a security hole. */
  75.  
  76. /*
  77.  * Unix Domain client/server defaults used by both ./winterp.c
  78.  * and ../src-client/wl.c
  79.  */
  80. #define DEFAULT_ENABLE_UNIX_SERVER        TRUE /* by default, enable unix domain server */
  81. #define DEFAULT_UNIX_SOCKET_FILEPATH        "/tmp/.winterp_serv" /* used by both 'winterp' and 'wl' -- the default unix domain socket */
  82. #define DEFAULT_UNIX_SOCKET_FILEPATH_ENVVAR    "WINTERP_UNIX_SOCKET_FILEPATH" /* used by both 'winterp' and 'wl' -- environment var for unix socket file */
  83.  
  84. /*
  85.  * Defaults used by winterp.c
  86.  */
  87. #define DEFAULT_LISP_INIT_FILE            "initialize.lsp"
  88. #define DEFAULT_LISP_TRANSCRIPT_FILE        NULL
  89. #define DEFAULT_LISP_LIB_DIR            "./"
  90. #define DEFAULT_ENABLE_INIT_MSGS        TRUE
  91. #define DEFAULT_ENABLE_XT_ERROR_BREAK        TRUE
  92. #define DEFAULT_ENABLE_XT_WARNING_BREAK        FALSE
  93. #define DEFAULT_ENABLE_X_ERROR_BREAK        TRUE
  94.